package com.qfedu.service.impl;

import com.qfedu.dao.HistoryDao;
import com.qfedu.dao.impl.HistoryDaoImpl;
import com.qfedu.pojo.History;
import com.qfedu.service.HistoryService;

import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.List;

public class HistoryServiceImpl implements HistoryService {
    HistoryDao historyDao=new HistoryDaoImpl();
    @Override
    public void addHistory(String idcode, String transferee, String outtransferee, BigDecimal money, String time, int status) {
        historyDao.addHistory(idcode, transferee, outtransferee, money, time, status);
    }

    @Override
    public List<History> findHistory(String idcode, int status, String time) {
        return historyDao.findHistory(idcode, status, time);
    }
}
